package com.ruoyi.drug.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;
/**
 * 药品信息对象 drug_info
 *
 * @author hniu
 * @date 2023-10-18
 */
public class DrugInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 处方类型（0中药处方药 1西药处方药） */
    @Excel(name = "处方类型", readConverterExp = "0=中药处方药,1=西药处方药")
    private String drugType;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private Double drugPrice;

    /** 库存 */
    @Excel(name = "库存")
    private Integer drugStock;

    /** 销量 */
    @Excel(name = "销量")
    private Integer drugSales;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setDrugId(Long drugId)
    {
        this.drugId = drugId;
    }

    public Long getDrugId()
    {
        return drugId;
    }
    public void setDrugName(String drugName)
    {
        this.drugName = drugName;
    }

    public String getDrugName()
    {
        return drugName;
    }
    public void setDrugType(String drugType)
    {
        this.drugType = drugType;
    }

    public String getDrugType()
    {
        return drugType;
    }
    public void setDrugPrice(Double drugPrice)
    {
        this.drugPrice = drugPrice;
    }

    public Double getDrugPrice()
    {
        return drugPrice;
    }
    public void setDrugStock(Integer drugStock)
    {
        this.drugStock = drugStock;
    }

    public Integer getDrugStock()
    {
        return drugStock;
    }
    public void setDrugSales(Integer drugSales)
    {
        this.drugSales = drugSales;
    }

    public Integer getDrugSales()
    {
        return drugSales;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("drugType", getDrugType())
            .append("drugPrice", getDrugPrice())
            .append("drugStock", getDrugStock())
            .append("drugSales", getDrugSales())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
